package com.li.observerpattern;

/**
 * @author lirenchun
 */
public class Test {
    public static void main(String[] args) {
        Subject subject = new ConcreteSubject();
        Observer observer = new ConcreteOberverOthe("观察者1");
        Observer observer2 = new ConcreteOberverOthe("观察者2");
        subject.addObserver(observer);
        subject.addObserver(observer2);
    }
}
